package com.netistate.pojo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name="t_license")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class License {

	private int id;
	private String clientName;
	private int isDemo;
	private int isPigoss;
	private int isVc;
	private int forever;
	private int nodes;
	private String pigossKey;
	private String linkMan;
	private String linkEmail;
	private String lockedIp;
	private String createtime;
	private int state;
	
	private Device device;
	
	@ManyToOne
	@JoinColumn(name="deviceid")
	public Device getDevice() {
		return device;
	}
	public void setDevice(Device device) {
		this.device = device;
	}
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getClientName() {
		return clientName;
	}
	public void setClientName(String clientName) {
		this.clientName = clientName;
	}
	public int getIsDemo() {
		return isDemo;
	}
	public void setIsDemo(int isDemo) {
		this.isDemo = isDemo;
	}
	public int getIsPigoss() {
		return isPigoss;
	}
	public void setIsPigoss(int isPigoss) {
		this.isPigoss = isPigoss;
	}
	public int getIsVc() {
		return isVc;
	}
	public void setIsVc(int isVc) {
		this.isVc = isVc;
	}
	public int getForever() {
		return forever;
	}
	public void setForever(int forever) {
		this.forever = forever;
	}
	public int getNodes() {
		return nodes;
	}
	public void setNodes(int nodes) {
		this.nodes = nodes;
	}
	public String getPigossKey() {
		return pigossKey;
	}
	public void setPigossKey(String pigossKey) {
		this.pigossKey = pigossKey;
	}
	public String getLinkMan() {
		return linkMan;
	}
	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}
	public String getLinkEmail() {
		return linkEmail;
	}
	public void setLinkEmail(String linkEmail) {
		this.linkEmail = linkEmail;
	}
	public String getLockedIp() {
		return lockedIp;
	}
	public void setLockedIp(String lockedIp) {
		this.lockedIp = lockedIp;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
	
	
	
}
